package com.softeem.service.impl;

import com.softeem.dao.CustomerDao;
import com.softeem.dao.impl.CustomerDaoImpl;
import com.softeem.entity.Customer;
import com.softeem.service.CustomerService;

import java.sql.SQLException;
import java.util.List;


public class CustomerServiceImpl implements CustomerService {

    private CustomerDao dao = new CustomerDaoImpl();


    public Integer login(String name, String id) throws SQLException {

        return dao.login(name,id);
    }



    public List<Customer> findAll() throws SQLException {

        return dao.findAll();
    }



    public Integer delete(String id) throws SQLException {

        return dao.delete(id);
    }



    public Integer total() throws SQLException {

        return dao.total();
    }



    public List<Customer> findPages(String pageNo) throws SQLException {

        return dao.findPages(pageNo);
    }

    public Customer findOne(String id) throws SQLException {
        return dao.findOne(id);
    }


    public Integer update(Customer cus) throws SQLException {
        return dao.update(cus);
    }
}
